<?php
// Editer un fichier texte

include('../config/config.php');
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-gb" lang="en-gb" dir="ltr">
<head>
	<meta http-equiv="content-Type" content="text/html; charset=utf-8"/>
	<meta http-equiv="Content-Language" content="fr"/>
	<title>Vue détaillée</title>
 	<meta name="language" content="fr-FR" />
	<meta name="robots" content="nofollow" />
	<meta name="keywords" content="<?php echo $longTitle;?>" />
	<meta name="author" content="Archives Henri Poincaré"/>
	<meta name="publisher" content="Laboratoire d'Histoire des Sciences et de Philosophie" />
	<meta name="copyright" content="Université Nancy 2, CNRS" />
	<style type="text/css" media="screen">@import url(./styles/noticeBib.css);</style>
	<link rel="shortcut icon" type="image/x-icon" href="images/favicon.ico"/>
</head>
<body>
<div id="main" style="padding:0 1em;">
	<div id="searchForm" style="">

<div style="padding-bottom:0.5em; color:red;">Edition de la notice <?php echo $_GET['file']?></div>


<form method="post" action="index.php?<?php echo urldecode($_SERVER["QUERY_STRING"])?>&amp;save=on">
<table id="viewItem">
<tr><td>
<?php
	print_r($_GET['file']);
	if(!empty($_GET['file'])) $fieldValue= file_get_contents($_GET['file']);
	echo '<textarea class="ckeditor" id="editor" name="editor" cols="72" rows="10">'.$fieldValue.'</textarea>';
?>
</td></tr>
<?php
// Form display
?>
</table>
<div style="text-align:center; padding:1em;"><input type="submit" value="Sauvegarder"></div>
</form>

	</div>
</div>

</body>
</html>
